package com.qindian.coupontest;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qindian.model.GoodsTypeModel;

import java.util.List;

/**
 * Author: Li
 * Date: 2018/5/2 0002
 * Description:
 */

public class GoodsTypeAdapter extends BaseQuickAdapter<GoodsTypeModel, BaseViewHolder> {
    public GoodsTypeAdapter(int layoutResId, @Nullable List<GoodsTypeModel> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsTypeModel item) {
        helper.setText(R.id.txt_type, item.getName());
    }
}
